﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using System.Data;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Data.Metadata.Edm;
using System.Web.Mvc;
namespace SoftHotel.Models
{
    public class ConsumoDocVentaDAO : DbContext
    {
        
        public DbSet<ConsumoDocVenta> consumo { get; set; }//MOno!!

        public List<Consumo> consumoslista = new List<Consumo>() { };
        public List<Consumo> busquedacon = new List<Consumo>() { };


        public ConsumoDocVentaDAO() : base("conexionPrincipalDAO") { }
        private Conexion conexionBD = new Conexion();

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<ServicioDocVenta>().ToTable("Servicio");
            modelBuilder.Entity<ConsumoDocVenta>().ToTable("Consumo");
            
        }
    }
}